# -*- coding: utf-8 -*-

from functools import wraps

import logging

logger = logging.getLogger(__file__)


def check_func(func):
    @wraps(func)
    def wrapper(*args, **kwargs):
        logger.info('start')

        func_name = func.__name__
        logger.info(f'func_name:{func_name}')

        logger.info('end')
        return func(*args, **kwargs)

    return wrapper